# nim c -r is_prime.nim

import math

proc prime(n: int): bool =
    for i in 2 .. int(sqrt(float(n))):
        if n %% i == 0:
            return false
        else:
            return true

echo prime(4)
echo prime(67)
echo prime(7)
echo prime(1)
